package com.jd.cs.service;

import com.jd.cs.entity.UserPo;
import com.jd.cs.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;


/**
 * @author lizhiwei
 * @date 2020-09-15 03:02:12
 * @since jdk 1.8
 */
@Service
public class UserService extends BaseService<UserMapper, UserPo> {

    @Autowired
    public UserMapper userMapper;

    public UserPo select2(int id) {
        return userMapper.select2(id);
    }

    public UserPo select3(int id) {
        return userMapper.select3(id);
    }

    @Transactional
    public int updatePassword(int id, String password) {
        int i = userMapper.updatePassword(id, password);
        return i;
    }
}
